package be.kuleuven.cs.mop.app.parser;


import java.io.File;

import be.kuleuven.cs.mop.app.System;
import be.kuleuven.cs.mop.app.controllers.Controllers;
import be.kuleuven.cs.mop.domain.model.impl.World;



/**
 * Test application for the {@link DataParser} class
 * 
 * @author DarK
 */
public class DataParserTester {
	
	private static final File DATA	= new File("data/data.xml");
	private static final File THEME = new File("data/themes.xml");
	
	
	public static void main(final String... args) {
		try {
			final World			world		= new World();
			final System		system		= new System(world);
			final Controllers	controllers	= new Controllers(system);
			
//			print("Clock:  %s", world.getClock().getTime());
			
			new DataParser().parse(DATA, controllers,
					new ThemeParser().parse(THEME, world));
			
			//	TODO:	Print debug output
		} catch (final Exception e) {
			e.printStackTrace();
		}
	}
	
}